<?php namespace App\Exceptions\User;

use App\Exceptions\BaseException;

class PublisherException extends BaseException
{
    const PUBLISHER_CODE_NOT_FOUND = 2020;
    const ALREADY_IS_PUBLISHER = 2021;
    const PUBLISHER_INVITE_CODE_USED = 2022;
    const ONLY_PUBLISHER_CREATE_INVITE_CODE = 2023;
    const PUBLISHER_INVITE_CODE_UPPER_LIMIT = 2024;

    protected $messages = [
        self::PUBLISHER_CODE_NOT_FOUND          => '邀请码不存在.',
        self::ALREADY_IS_PUBLISHER              => '您已经是发布者,请勿重复操作.',
        self::PUBLISHER_INVITE_CODE_USED        => '邀请码已被使用.',
        self::ONLY_PUBLISHER_CREATE_INVITE_CODE => '只有成为发布者,才能创建邀请码.',
        self::PUBLISHER_INVITE_CODE_UPPER_LIMIT => '邀请码已达到上限.',
    ];
}
